//
//  HXrecommendCell.m
//  爱鲜蜂
//
//  Created by 建国 on 16/5/4.
//  Copyright © 2016年 建国. All rights reserved.
//
#import "HXGoodsView.h"
#import "HXrecommendCell.h"

@implementation HXrecommendCell


- (void)setFrame:(CGRect)frame
{
    frame.size.height -= 10;
    [super setFrame:frame];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

-(void)layoutSubviews {
    [super layoutSubviews];
    for (int i = 0; i < 3 ; i++) {
        HXGoodsView *goodView = [HXGoodsView goodsView];
        CGFloat ViewW = SCREEN_WIDTH / 3;
        goodView.frame = CGRectMake( i *ViewW, 100 , ViewW, 200-10 );
        [self.contentView addSubview:goodView];
    }
}

@end
